﻿/// <reference path="../d.ts/requirejs/index.d.ts" />
/// <reference path="../d.ts/durandal/index.d.ts" />
/// <reference path="../d.ts/knockout/index.d.ts" />

define(function (require) {
    var router: DurandalRootRouter = require('plugins/router');

    return {
        router: router,
        activate: function () {
            router.map([
                { route: '', title: 'Home', moduleId: 'home/index', nav: true },
                { route: 'rainier', title: 'Mount Rainier', moduleId: 'rainier/index', nav: true }
            ]).buildNavigationModel();
            return router.activate();
        }
    };
}); 